/**
 * jims
 */
package com.jims.master.modules.drug.dao;

import com.jims.master.common.persistence.CrudDao;
import com.jims.master.common.persistence.annotation.MyBatisDao;
import com.jims.master.modules.drug.entity.DrugPriceLog;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 药品价格记录DAO接口
 * @author CTQ
 * @version 2017-03-02
 */
@MyBatisDao
public interface DrugPriceLogDao extends CrudDao<DrugPriceLog> {

    public List<DrugPriceLog> findByPriceId(DrugPriceLog drugPriceLog);

    /**
     *  更新价表调价记录
     * @param priceId
     * @param isNew
     * @return
     * @author CTQ
     */
    public int updateByDrugPriceId(@Param("durgPriceId")String priceId, @Param("isNew") String isNew, @Param("stopDate") Date stopDate);

}